import axios from '../../utils/request'

function getList(query) {
    // /list?id=1
    return axios.get('/blog/list', {params: query})
}

function addList(body){
    return axios.post('/blog/list', body)
}


function editList(body){
    return axios.put('/blog/list', body)
}

function delList(id){
    return axios.delete(`/blog/list/${id}`)
}

export default {
    getList,
    addList,
    editList,
    delList,
}